package com.franklin.ideaplugin.mybatisrunner.notification;

import com.franklin.ideaplugin.mybatisrunner.icon.PluginIcons;
import com.intellij.notification.NotificationGroupManager;
import com.intellij.notification.NotificationType;
import com.intellij.openapi.project.Project;

/**
 * @author Ye Junhui
 * @since 2023/7/22
 */
public class PluginNotifier {

    private final static String PREFIX = "Mybatis-Runner : ";

    /**
     * 气球通知
     * @param project
     * @param content
     */
    public static void notifyInfo(Project project, String content) {
        NotificationGroupManager.getInstance()
                .getNotificationGroup("Mybatis-Runner Notification Group")
                .createNotification(content, NotificationType.INFORMATION)
                .setIcon(PluginIcons.PLUGIN)
                .setTitle("Mybatis-Runner")
                .notify(project);
    }
}
